package com.ruoyi.reser.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.reser.mapper.YuyuexinxiMapper;
import com.ruoyi.reser.domain.Yuyuexinxi;
import com.ruoyi.reser.service.IYuyuexinxiService;

/**
 * 预约信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-04-24
 */
@Service
public class YuyuexinxiServiceImpl implements IYuyuexinxiService 
{
    @Autowired
    private YuyuexinxiMapper yuyuexinxiMapper;

    /**
     * 查询预约信息
     * 
     * @param id 预约信息主键
     * @return 预约信息
     */
    @Override
    public Yuyuexinxi selectYuyuexinxiById(Long id)
    {
        return yuyuexinxiMapper.selectYuyuexinxiById(id);
    }

    /**
     * 查询预约信息列表
     * 
     * @param yuyuexinxi 预约信息
     * @return 预约信息
     */
    @Override
    public List<Yuyuexinxi> selectYuyuexinxiList(Yuyuexinxi yuyuexinxi)
    {
        return yuyuexinxiMapper.selectYuyuexinxiList(yuyuexinxi);
    }

    /**
     * 新增预约信息
     * 
     * @param yuyuexinxi 预约信息
     * @return 结果
     */
    @Override
    public int insertYuyuexinxi(Yuyuexinxi yuyuexinxi)
    {
        return yuyuexinxiMapper.insertYuyuexinxi(yuyuexinxi);
    }

    /**
     * 修改预约信息
     * 
     * @param yuyuexinxi 预约信息
     * @return 结果
     */
    @Override
    public int updateYuyuexinxi(Yuyuexinxi yuyuexinxi)
    {
        return yuyuexinxiMapper.updateYuyuexinxi(yuyuexinxi);
    }

    /**
     * 批量删除预约信息
     * 
     * @param ids 需要删除的预约信息主键
     * @return 结果
     */
    @Override
    public int deleteYuyuexinxiByIds(Long[] ids)
    {
        return yuyuexinxiMapper.deleteYuyuexinxiByIds(ids);
    }

    /**
     * 删除预约信息信息
     * 
     * @param id 预约信息主键
     * @return 结果
     */
    @Override
    public int deleteYuyuexinxiById(Long id)
    {
        return yuyuexinxiMapper.deleteYuyuexinxiById(id);
    }
}
